package com.simple.web;


import org.springframework.util.StringUtils;

import java.io.File;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class Test {

    public static void main(String[] args) {
//        String name = "4-2.jpg";
//String n2 = name.replaceAll("-\\d+.jpg","");
//        System.out.println(n2);
        List<String> list = new ArrayList<>();
        for(File f : new File("D:\\2.OCR_TXT\\Anys\\3000\\img").listFiles()){
            System.out.println(f.getName());
            //list.add(f.getName());
        }
        //String str = StringUtils.collectionToDelimitedString(list,",");
        //System.out.println(str);

    }
}
